set(lib_list configs http_protocol module tools)
set(sys_lib_list pthread)

include_directories(
    ${CMAKE_SOURCE_DIR}/src/configs
    ${CMAKE_SOURCE_DIR}/src/debug
    ${CMAKE_SOURCE_DIR}/src/http_protocol
    ${CMAKE_SOURCE_DIR}/src/module
    ${CMAKE_SOURCE_DIR}/src/tools
)

link_directories(
    ${root_dir}/libs
)

add_subdirectory(configs)
add_subdirectory(http_protocol)
add_subdirectory(module)
add_subdirectory(tools)

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)

add_executable(${PROJECT_NAME} service.c)
target_link_libraries(${PROJECT_NAME} PUBLIC ${lib_list} ${sys_lib_list})


